package com.snapp.web.actions.object;

import javax.servlet.http.HttpServletRequest;

import com.snapp.web.SNAppAccess;
import com.snapp.web.actions.file.Download;

public class DownloadTemplate extends Download {

	public String execute(HttpServletRequest req) {
		if (SNAppAccess.isSecure(req)) {
			return super.execute(req);
		} else {
			setResults(RESULT_CODE_ERROR, "Request was not secure.");
			return snappResponse(req);
		}
	}
}
